package com.canto.access.config;

import com.canto.common.support.YamlPropertySourceFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 权限相关配置
 *
 * @author jsryin
 * @version 2021-07-02
 */
@Configuration
@PropertySource(value = "classpath:authority/mappingConfig.yml", factory = YamlPropertySourceFactory.class)
public class AccessConfig {

    /**
     * URL配置
     *
     * @return
     */
    @Bean
    @ConfigurationProperties(prefix = "url")
    public MappingConfig getMappingConfig() {
        return new MappingConfig();
    }

}
